Hi,
after a bit too long, I'm getting around to the final setup/tuning of my lathe and have a couple remaining issues/questions.
The first is about tuning the servos. I spent some time earlier tuning the axis, and the best following error I can get is around 45 on the X and 15 on the Z. I'm running velocity mode, and have run the drives built in auto-tune before changing any of the figure, and tried changing P&I. I'll be happy with the Z, however I really want to try and get the X as good as possible (45 works out to around 0.011mm X movement or 0.022mm on the diameter).
I suspect the slant bed design is upsetting the auto-tune, so would I be better to change to torque mode and rely on the KFlop for all the tuning?
I've attached the X and Z step responses, along with the main init thread if anybody want's to suggest any improvements.
The other issue is the spindle.
It's run of a VFD, and is setup with a custom output channel (it's at the bottom of the init script) to act like a slow responding servo. It works well, however following error causes issues in certain circumstances. For example, if I run the spindle at full commanded speed (should be 4000rpm, but in reality it tops out at a very steady 3950) the following error continues to increase. This in it's self isn't an issue, however if I then command a slower speed, the spindle doesn't slow down until the following error decreases enough to trigger a change in the servo output.
Is there any easy way to zero the following error on a speed change, or periodically during max speed to avoid a large error accumulating?
I'm not too concerned about this, as I can just rely on not commanding full speed, however it would be nice if there was an easy solution, as I'm wanting to reduce the following error limit so things fault quicker if the spindle stalls for whatever reason.
Thanks
Moray